/*
 * @Author: xiaxia
 * @Description: 
 * @Date: 2024-07-02 14:09:03
 * @LastEditTime: 2024-07-02 17:50:55
 * @FilePath: \project\src\api\product\sku\type.ts
 */
export interface ResponseData {
  code: number,
  message: string,
  ok: boolean,
}


export interface skuAttrValue {
  id?: number|string,
  attrId: number|string, 
  valueId: number|string, 
  attrName?: string,
}
export interface skuSaleAttrValue {
  id?: number|string,
  saleAttrId: number|string,
  saleAttrValueId: number|string,
  saleAttrName?: string,
}
export interface SkuInfo {
  id?: number|string,
  spuId?: number|string,
  tmId?: number|string,
  category3Id?: number|string,
  skuName?: string,
  price?: number|string,
  weight?: string
  skuDesc?: string,
  isSale?: number|string,
  skuDefaultImg?: string,
  skuAttrValueList?: skuAttrValue[],
  skuSaleAttrValueList?: skuSaleAttrValue[],
  skuImageList?:any,
}

// 获取品牌返回的数据类型
export interface SkuLitsRespones extends ResponseData {
  data: {
    records :SkuInfo[],
    totals: number,
    sizes: number,
    current: number,
    searchCount: boolean,
    pages: number,
    total: number,
  }
}

export interface SkuInfoRespones extends ResponseData{
  data: SkuInfo,
}